﻿@{
    Layout = "../Shared/_InnerPage.cshtml";
}
@model XoohooViewModelItem<UserChangeProfileInput>
@section TitleContent{
    @Html.SiteTitle("修改资料")
}
@section NavigationContent
{
    当前位置：修改资料
}
@{
    UserChangeProfileInput input = Model.Item;
    var inputStyle = new { @class = "input" };
}
@{Html.BeginRouteForm("Admin.ChangeProfile", FormMethod.Post, new { @id = "ProfileForm", @name = "ProfileForm" });}
    <table cellpadding="4" cellspacing="0" class="tbl">
        <tr>
            <td class="tit">
                用户名：
            </td>
            <td class="con">
                @Model.User.Name
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td class="tit">
                @Html.LabelFor(input, item => item.DisplayName)：
            </td>
            <td class="con">
                @Html.TextBoxFor(input, item => item.DisplayName, inputStyle)
            </td>
            <td>
                @Html.ValidationMessageFor(input, item => item.DisplayName, "请输入昵称")
            </td>
        </tr>
        <tr>
            <td class="tit">
                @Html.LabelFor(input, item => item.Email):
            </td>
            <td class="con">
                @Html.TextBoxFor(input, item => item.Email, inputStyle)
            </td>
            <td>
                @Html.ValidationMessageFor(input, item => item.Email, "请输入邮箱地址")</td>
        </tr>
        <tr>
            <td class="tit">
            </td>
            <td>
                @Html.ImageButton("btnSubmit", "Styles/Images/btnSubmit.jpg")
            </td>
            <td>
            </td>
        </tr>
    </table>
@{Html.EndForm();}
